package com.hospital.insurancepeople.module.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hospital.insurancepeople.module.entity.DrugPrescMaster;
import com.hospital.insurancepeople.module.entity.OutpDoctorPrescMaster;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;

/**
 * <p>
 * ÃÅÕïÒ½Éú´¦·½Ö÷¼ÇÂ¼ Mapper 接口
 * </p>
 *
 * @author lvyao
 * @since 2021-03-31
 */
public interface OutpDoctorPrescMasterMapper extends BaseMapper<OutpDoctorPrescMaster> {

    OutpDoctorPrescMaster getOutpDocPresc(@Param("visitDate") String visitDate, @Param("visitNo") String visitNo);

    boolean updateFlag(@Param("billNo") String billNo);

    boolean updateFlagOt(@Param("visitDate") String visitDate, @Param("visitNo") String visitNo);

    boolean updateVerifyFlag(@Param("visitDate") String visitDate, @Param("visitNo") String visitNo, @Param("verifyFlag") String verifyFlag);
    String getNewPrescNo();

    Timestamp getSysdate();

    DrugPrescMaster getDrugPrescMaster(@Param("visitDate") String visitDate, @Param("visitNo") String visitNo);


}
